import request from '@/utils/request'

// 查询预算信息列表
export function listBudgets(query) {
  return request({
    url: '/project/budgets/list',
    method: 'get',
    params: query
  })
}

// 查询预算信息详细
export function getBudgets(budgetId) {
  return request({
    url: '/project/budgets/' + budgetId,
    method: 'get'
  })
}

// 新增预算信息
export function addBudgets(data) {
  return request({
    url: '/project/budgets',
    method: 'post',
    data: data
  })
}

// 修改预算信息
export function updateBudgets(data) {
  return request({
    url: '/project/budgets',
    method: 'put',
    data: data
  })
}

// 删除预算信息
export function delBudgets(budgetId) {
  return request({
    url: '/project/budgets/' + budgetId,
    method: 'delete'
  })
}
